package com.matrix.api.review.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * @author 有点甜
 * @since 2025/7/27
 */
@Data
public class ReviewItemDTO {
    @NotNull(message = "订单项ID不能为空")
    private Long orderItemId;

    @NotNull(message = "菜品评分不能为空")
    @Min(value = 1, message = "评分最低为1")
    @Max(value = 5, message = "评分最高为5")
    private Integer rating;

    @Size(max = 100, message = "评价内容不能超过100字")
    private String comment;

    @Size(max = 3, message = "最多只能上传3张图片")
    private List<String> imageUrls;
}
